From 50431be274dbc969fb03d6c4b1cbc62bffeacac7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 18 Dec 2011 12:49:06 +0100 Subject: [PATCH] accessible: At an important note to the docs I wanted to use weak refs to ensure this instead, but it's a performance problem when used in the treeview and each and every cell adds a weak ref to the treeview. --- gtk/gtkaccessible.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c index ebb9e3478b..eb318e1cc1 100644 --- a/gtk/gtkaccessible.c +++ b/gtk/gtkaccessible.c @@ -127,10 +127,14 @@ gtk_accessible_class_init (GtkAccessibleClass *klass) /** * gtk_accessible_set_widget: * @accessible: a #GtkAccessible - * @widget: a #GtkWidget + * @widget: (allow-none): a #GtkWidget or %NULL to unset * * Sets the #GtkWidget corresponding to the #GtkAccessible. * + * @accessible will not hold a reference to @widget. + * It is the caller's responsibility to ensure that when @widget + * is destroyed, the widget is unset by calling this function + * again with @widget set to %NULL. * Since: 2.22 */ void -- 2.30.2